package juliusapp.util.validator;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class EmailValidator{
	
	static Pattern pattern = Pattern.compile("[a-zA-Z0-9\\+\\.\\_\\%\\-\\+]{1,256}" + "\\@"
			+ "[a-zA-Z0-9][a-zA-Z0-9\\-]{0,64}" + "("
			+ "\\." + "[a-zA-Z0-9][a-zA-Z0-9\\-]{0,25}"
			+ ")+");
	
	public static boolean isInvalid(String arg){
		Matcher matcher = pattern.matcher(arg);	
		return !matcher.matches();
	}

}
